<section class="pagebox questionAddPage" ng-controller="QuestionAdd" style="height: 1000px;">
    <div class="headerLeft">
        <dl class="textOverflow">
            <a class="aClean" ng-click="goMenu()">派宝开放平台</a> >
            <a id="showDiv"  class="aClean" ng-click="changeDiv()">自定义问答<img id="showDivImg" style="width:19px;" src="resource/images/DownArrow.png"></a>
        </dl>
    </div>
    <div class="header">
        <dl class="textOverflow">
            <a id="showUserDiv" class="aClean" title="{{title}}" ng-click="changeUserDiv()"><img class="robotIcon" src={{user.imageUrl}}>{{user.nickname}}<img id="showUserImg" style="width:19px;height: auto;" src="resource/images/DownArrow.png"></a>
        </dl>
    </div>
    <div class="container" id="hideDiv">
        <div class="content"><ul class="menuRobotsList">
            <li ng-repeat="m in menus">
                <a  class="aClean" ng-click="goSecondMenu(m.id)">
                    <img class="conversation_boxL menuIcon" src="{{m.imageUrl}}">
                    <dl ng-if="'' != m.menuName" title="{{m.menuName}}">
                        <span style="color: #0088CC" ng-if="'自定义问答' != m.menuName">{{m.menuName}}</span>
                        <span style="background-color: #7EA7D8;color: white;border-radius:8px;padding: 2px 5px 2px 5px" ng-if="'自定义问答' == m.menuName">{{m.menuName}}</span>
                    </dl>
                </a>
            </li>
        </ul></div>
        <s>
            <m></m>
        </s>
    </div>
    <div class="userDiv" id="hideUserDiv"><div class="userContainer">
        <div class="content">
            <ul>
                <li class="userLi">
                    <a ng-click="goChangePassowrd()" class="aClean">修改密码</a>
                </li>
                <li class="userLi">
                    <a ng-click="logOut()" class="aClean">注销</a>
                </li>
            </ul>
        </div>
        <s>
            <m></m>
        </s>
    </div></div>
    <ng-form name="addQuestionForm">
      <section class="questionAddBox" id="questInfo">
        <input type="hidden" ng-model="question.robotId"/>
          <dl style="text-align: center;margin-bottom: 30px;"><h4><b>新增问答</b></h4></dl>
        <dl><dt><b>问题：</b></dt><dd><input type="text" ng-model="question.question" ></dd></dl>
        <dl ng-show="question.type!='video'"><dt><b>回答：</b></dt><dd><textarea rows="5" ng-model="question.answer" ></textarea></dd></dl>
        <dl><dt><b>附件类型：</b></dt>
          <dd>
            <label><input type="radio" ng-model="question.type" value="none" ng-change="">无</label>
            <label><input type="radio" ng-model="question.type" value="image">图片</label>
            <label><input type="radio" ng-model="question.type" value="video">视频</label>
          </dd></dl>
        <dl ng-show="question.type=='video'"><dt><b>视频地址：</b></dt><dd><input type="text" ng-model="question.videoUrl"></dd></dl>
        <dl ng-show="question.type=='image'"><dt><b>选择图片：</b></dt>
            <dd>
                <button name="fileBtn" class="Btncanel" ngf-select="" ngf-pattern="image/*" ngf-multiple="false" accept="image/*" ng-model="file" ngf-max-size="5MB">选择图片</button>
                <span ng-show="addQuestionForm.fileBtn.$error.maxSize" style="color: red">图片不能大于5M</span>
                <img ngf-src="file || data.defaultImage" name="question.imageName" class="img-responsive" style="width:200px; max-width:500px;padding-top: 5px" >
            </dd>
        </dl>
        <dl ng-show="question.type=='image'"><dt><b>展示时间：</b></dt><dd><input type="text" ng-model="question.imageDuration" class="questionAddBoxts">秒</dd></dl>
        <section class="groupBtn">
          <button class="Btnloadding" ng-click="saveQuestion()">完成</button>
          <button class="Btncanel" ui-sref="questionList">返回</button>
        </section>
      </section>
      </ng-form>
</section>

